/*Color brand*/
:root {
    --camel: #f8eee6;
    --lightBlue: #b9d7f2;
    --pink: #f6b6b8;
    --purple: #6B2138;
    --orange: #e95226;
    --yellow: #d0c460;
    --brown: #4d4342;
}

/*Polices d'écriture*/
@font-face {
    font-family: 'poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'lora';
    src: url('../fonts/Lora-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.titrePagePartenaires {
    font-family: 'poppins', sans-serif;
    font-size: 50px;
    color: var(--purple);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.subtitleLtrafPartenaires {
    font-family: 'poppins', sans-serif;
    font-size: 18px;
    color: var(--brown);
    text-align: center;
    margin-bottom: 40px;
}

.logoPartenaires {
    height: 150px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.logoPartenaires1 {
    height: 100px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.axa{
    width: 300px;
    height: auto;
}

.titrePartenaires {
    font-family: 'poppins', sans-serif;
    font-size: 25px;
    color: var(--purple);
    text-align: center;
    margin-bottom: 20px;
}

.partenaireTitreEtLogo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.partenaire1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 4vw;
    max-width: 1200px;
    padding: 0 2vw;
}

.partenaireDesc p {
    font-family: 'lora', serif;
    font-size: 16px;
    color: var(--purple);
    text-align: center;
    max-width: 400px;
}

.ltrafPartenaires {
    margin-top: 0;
}

h1.titrePagePartenaires {
    font-family: poppins, sans-serif;
    font-size: 3vw;
    letter-spacing: 1px;
    font-weight: bold;
    margin: auto;
    display: flex;
    justify-content: center;
}

.headPagePartenaires {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 12vw;
    margin-bottom: 3vw;
}

.insta {
    background-color: white;
    width: 15vw;
    height: 17vw;
    background: #fff;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.12),
        0 2px 2px rgba(0, 0, 0, 0.12),
        0 4px 4px rgba(0, 0, 0, 0.12),
        0 8px 8px rgba(0, 0, 0, 0.12);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    font-family: lora, sans-serif;
}

.insta:hover {
    box-shadow:
        0 4px 4px rgba(0, 0, 0, 0.25),
        0 8px 8px rgba(0, 0, 0, 0.25),
        0 16px 16px rgba(0, 0, 0, 0.25),
        0 32px 32px rgba(0, 0, 0, 0.25);
    transform: rotate(0deg) scale(1.05);
}

.insta img {
    width: 12vw;
    height: 12vw;
    object-fit: cover;
}

.insta h3,
.insta .highlight-text {
    font-size: 1.5vw;
    color: var(--brown);
}

.insta .highlight-text {
    font-family: lora, sans-serif;
    margin: 0;
}


.insta2 {
    background-color: white;
    width: 15vw;
    height: 17vw;
    background: #fff;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.12),
        0 2px 2px rgba(0, 0, 0, 0.12),
        0 4px 4px rgba(0, 0, 0, 0.12),
        0 8px 8px rgba(0, 0, 0, 0.12);
    transform: rotate(3deg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    font-family: lora, sans-serif;
}

.insta2:hover {
    box-shadow:
        0 4px 4px rgba(0, 0, 0, 0.25),
        0 8px 8px rgba(0, 0, 0, 0.25),
        0 16px 16px rgba(0, 0, 0, 0.25),
        0 32px 32px rgba(0, 0, 0, 0.25);
    transform: rotate(0deg) scale(1.05);
}

.insta2 img {
    width: 12vw;
    height: 12vw;
    object-fit: cover;
}

.insta2 h3,
.insta2 .highlight-text {
    font-size: 1.5vw;
    color: var(--purple);
}

.insta2 .highlight-text {
    font-family: lora, sans-serif;
    margin: 0;
}

h2.subtitleLtrafPartenaires {
    font-family: poppins, sans-serif;
    font-size: 1.2vw;
    font-weight: 500;
    margin: auto;
    display: flex;
    justify-content: center;
    margin-top: 3vw;
}

/* Media Queries pour le responsive */

/* Mobile (téléphone) - Détection basée sur le ratio d'aspect et l'orientation */
@media screen and ((orientation: portrait) and (max-aspect-ratio: 2/3)),
       screen and ((max-width: 768px) and (hover: none) and (pointer: coarse)) {

    /* Section headPage */
    .headPagePartenaires {
        flex-direction: column;
        gap: 8vw;
        padding: 8vw 0;
        margin-top: 0;
    }

    .insta,
    .insta2 {
        width: 70vw;
        height: 75vw;
    }

    .insta img,
    .insta2 img {
        width: 60vw;
        height: 60vw;
    }

    .insta h3,
    .insta2 h3,
    .insta .highlight-text,
    .insta2 .highlight-text {
        font-size: 5vw;
        margin-top: 2vw;
    }

    /* Section titre */
    .ltrafPartenaires {
        padding: 0 5vw;
    }

    h1.titrePagePartenaires {
        font-size: 8vw;
        text-align: center;
    }

    h2.subtitleLtrafPartenaires {
        font-size: 4.5vw;
        margin-top: 4vw;
        text-align: center;
    }

    /* Section partenaires */
    .partenairesSection {
        padding: 5vw;
    }

    .titrePartenaires {
        font-size: 6vw;
        margin-bottom: 4vw;
    }

    .logoPartenaires {
        height: 100px;
        max-width: 70vw;
        object-fit: contain;
    }

    .logoPartenaires1 {
        height: 70px;
        max-width: 70vw;
        object-fit: contain;
    }

    .partenaire1 {
        flex-direction: column;
        gap: 4vw;
        margin-bottom: 8vw;
    }

    .partenaireTitreEtLogo {
        gap: 4vw;
    }

    .partenaireDesc {
        padding: 0 5vw;
    }

    .partenaireDesc p {
        font-size: 4vw;
        max-width: 100%;
    }
}

/* Tablette - Écrans moyens en portrait ou paysage tactile */
@media screen and ((orientation: portrait) and (min-aspect-ratio: 2/3) and (max-width: 1024px)),
       screen and ((orientation: landscape) and (max-width: 1366px) and (hover: none)),
       screen and ((min-width: 769px) and (max-width: 1024px) and (orientation: portrait)) {

    /* Section headPage */
    .headPagePartenaires {
        gap: 5vw;
        padding: 5vw 0;
    }

    .insta,
    .insta2 {
        width: 25vw;
        height: 28vw;
    }

    .insta img,
    .insta2 img {
        width: 20vw;
        height: 20vw;
    }

    .insta h3,
    .insta2 h3,
    .insta .highlight-text,
    .insta2 .highlight-text {
        font-size: 2.5vw;
    }

    /* Section titre */
    h1.titrePagePartenaires {
        font-size: 4vw;
    }

    h2.subtitleLtrafPartenaires {
        font-size: 2vw;
    }

    /* Section partenaires */
    .titrePartenaires {
        font-size: 30px;
    }

    .logoPartenaires {
        height: 120px;
        max-width: 35vw;
        object-fit: contain;
    }

    .logoPartenaires1 {
        height: 90px;
        max-width: 35vw;
        object-fit: contain;
    }

    .partenaire1 {
        gap: 3vw;
        margin-bottom: 6vw;
    }

    .partenaireDesc p {
        font-size: 2.2vw;
        max-width: 45vw;
    }
}